package com.viroyal.monitorlib.network.rsp;

import com.google.gson.annotations.SerializedName;
import java.io.Serializable;

/**
 * Created by cxy on 2016/10/08.
 */
public class VersionResponse implements Serializable {

    /**
     * error_code : 18336
     * error_msg : 测试内容bli1
     * extra : {"apk_url":"测试内容4q7t","checksum":"测试内容7f8h","upgrade_at":0,"upgrade_log":"测试内容6a1n","version":36788,"version_code":61855}
     */

    @SerializedName("error_code")
    public int errorCode;
    @SerializedName("error_msg")
    public String errorMsg;
    /**
     * apk_url : 测试内容4q7t
     * checksum : 测试内容7f8h
     * upgrade_at : 0
     * upgrade_log : 测试内容6a1n
     * version : 36788
     * version_code : 61855
     */

    @SerializedName("extra")
    public VersionMsg versionMsg;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public VersionMsg getExtra() {
        return versionMsg;
    }

    public void setExtra(VersionMsg versionMsg) {
        this.versionMsg = versionMsg;
    }

    public class VersionMsg {
        @SerializedName("apk_url")
        public String apkUrl;
        @SerializedName("checksum")
        public String checksum;
        @SerializedName("upgrade_at")
        public int upgradeAt;
        @SerializedName("upgrade_log")
        public String upgradeLog;
        @SerializedName("version")
        public String version;
        @SerializedName("version_code")
        public int versionCode;
        @SerializedName("upgrade_mode")
        public int upgradeMode;
        @SerializedName("md5")
        public String md5;

        public String getMd5() {
            return md5;
        }

        public void setMd5(String md5) {
            this.md5 = md5;
        }

        public String getApkUrl() {
            return apkUrl;
        }

        public void setApkUrl(String apkUrl) {
            this.apkUrl = apkUrl;
        }

        public String getChecksum() {
            return checksum;
        }

        public void setChecksum(String checksum) {
            this.checksum = checksum;
        }

        public int getUpgradeAt() {
            return upgradeAt;
        }

        public void setUpgradeAt(int upgradeAt) {
            this.upgradeAt = upgradeAt;
        }

        public String getUpgradeLog() {
            return upgradeLog;
        }

        public void setUpgradeLog(String upgradeLog) {
            this.upgradeLog = upgradeLog;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public int getVersionCode() {
            return versionCode;
        }

        public void setVersionCode(int versionCode) {
            this.versionCode = versionCode;
        }

        public int getUpgradeMode() {
            return upgradeMode;
        }

        public void setUpgradeMode(int upgradeMode) {
            this.upgradeMode = upgradeMode;
        }

    }
}
